({
    /* node r.js -o build.js
	 */
    appDir: '../',              //相对build.js的当前路径的所属地址
    baseUrl: './js',            //定位到appDir后，找到js脚本相对页面地址的位置
    dir: '../../dist',             //生成的文件地址
    modules: [
        //First set up the common build layer.
        {
            name: 'common'
        },
        {
            //module names are relative to baseUrl/paths config
            name: 'login',
            include: ["domReady","app/loginDo"],
            exclude: ['common']
        },
        {
            //module names are relative to baseUrl
            name: 'home',
            include: ["domReady","app/homeDo"],
            exclude: ['common']
        }

    ],
    fileExclusionRegExp: /^(r|build)\.js$/,
    optimizeCss: 'standard',
    removeCombined: true,
    paths: {
        /*库依赖*/
        jquery: "lib/jquery-2.0.3.min",
        domReady: "lib/domReady",
        jqueryCookie:'lib/jquery.cookie',
        jqueryValidate:'lib/jquery.validate',
        foundation: "lib/foundation.min",
        underscore: 'lib/underscore',
        modernizr: "lib/modernizr.min",
        template: 'lib/arttemplate',
        matrix:"lib/matrix",
        zepto:"lib/zepto",
        gmu:'lib/gmu.min',
        handlebars: 'lib/handlebars'
    },
    shim: {
        underscore: {
            exports: '_'
        },

        'domReady': {
            exports: "domReady"
        },

        'modernizr': {
            exports: "Mod"
        },

        'template': {
            exports: "template"
        },

        'zepto':{
            exports:'$'
        },

        'handlebars':{
            exports:'Handlebars'
        },

        'gmu':{
            deps:['zepto'],
            exports:'gmu'
        },

        'matrix': {
            exports: "matrix"
        },

        "jqueryCookie":["jquery"],
        "jqueryValidate":["jquery"],
        'foundation': ["jquery"]
    }
})